package com.pqtest.api.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
public class TestlibraryDto {
    private Integer id;
    private String title;
    private String desc;
    @JsonProperty("hard_rate")
    private int hardRate;
    @JsonProperty("average_point")
    private int averagePoint;
    @JsonProperty("test_count")
    private int testCount;
    @JsonIgnore
    private int moduleType;

    private int score;
    // @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonIgnore
    private Date createdTime;
    //@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonIgnore
    private Date updatedTime;
    @JsonIgnore
    private int state;
    @JsonIgnore
    private int pqTestCategoryId;
    @JsonProperty("item_amount")
    private int itemAmount;
    //是否模拟测验
    @JsonIgnore
    private int isSpirit;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("beginning")
    //@JsonIgnore
    private Date spiritStart;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("end")
    //@JsonIgnore
    private Date spiritEnd;
}
